added config reading code; moved configuration to global config.yml