implement config file parsing