use graceful-fs instead of fs