allow relations to be passed to the factory