updated API to its new form with the latest resources