added registration and setup of associations