import and adopt hatop. write watchfile