hack for pretty url parsing