api running on refactor