cleaned up task code with process.cwd() task not hard coded. other refactoring