transform_attributes allows for arbitrary transforms on certain attrs