add resources and api