merged argument checks.