fixed session create and update