active object refactoring and fixing buga with session