when attempting to create a dictionary with a kwargs key, the kwargs dict gets flattened into the toplevel dict, i.e. {'kwargs': { $foo }, $bar } becomes { $foo, $bar ...