directory watching works correctly