added config parsing