Functions to load API's with .lua extensions