break the cwd out into a var that can be switched easily