build correct URL, see #5