add type checking for named argument containers