added session parameter to all requires