implement linux filesystem watching