added sessions and removed the gets