use redis session and flags fixes