changed pattern dropped some npms and require api key to be stored out of the app