fixed some session errors, not quite persistent