optional: pass config file as parameter