fix basurl / url stuff