refactor to use fswatch more efficiently.