was incorrectly appending extra ? into url