changes for running in a virtual dir