adjust autoreload to work in html mode