use the working directory as the base URL, previous method did not work reliably