added getVersions and getEnvironments API calls