remove prefix from api paths as well