bug fixes with session id and redis