changes to allow the application to run in a subdirectory.