add more api func and seed data