use relative paths for xhr