use once_cell (lazy_static) for configuration instead of using function paramters
Configuration should generally be accessible from anywhere and is assignable only once. By using a static we can get rid of all references on
method and function calls.
Use once_cell like cocogitto and refactor all methods and functions