offline flushing and fixed error pages close #235