base url screwing things up