encoding needed to be a kwarg