pass session to some methods for internal use