removed global config var;
exposing initial api with option to init with settings;