small changes into the management of objects when manipulating them with a session