hacking around a cwd issue