api refactor seeds