added 'smart' parameter processing. Only minimal set is required