appending url query instead of entirely new filename