fixed bugs and added timed sessions