fixing chdir? I hope.