tested it. doesn't work 100% in offline mode in all cases, but it's good enough. the old bug of not loading pages still exists. fixed one or two things and removed console printouts and some comments