updated to use session backend