working api and new rake task