pass in dicts for attributes