private void register(Path dir) throws IOException {
    	if(!dir.getFileName().toString().startsWith(".")){
	        WatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);
	        keys.put(key, dir);
    	}
    }