fix build issues
make session work