removed dsm's and fixed redirect and also made sure no urlencode breaks things.