https://github.com/bontibon/xwatch