fix url parsing hack