added config file parsing