add API_VERSION to code