begin using fork to do processes for file IO