added redis session handling