added check session var to all files