move config onject/json to Config, add schema validator