moving functions to separate file, adding configuration files