fixed base url stuff. hate it