raise error added
some renaming and stuff
text cannot preprocess since content_type can be changed independently