allow hashref in new