fixed base url and some routing