use kqwait instead of fswatch, and add html conversion