use proces.cwd and re-add platform option