add guard for livereload