changed config parsing to allow running without config file