wasn't using encoded url. fixed