switch config parsing to use Hash