made stuff work when running in a subdirectory