how to set up tridef