fix for changing working folders