fix dirWatcher.close() issue
fix setCompression issue