routes fix, added api segment