adds support of add_dir and unlink_dir events