cleans deprecated attributes and methods