adjust to create session with association definitions