api refactor deployment issues