output debug in factory.create_session