added mock mode for development
panic if api key does not exist
local install and dev script
use exports for script