readded class transforming
TODO: implement replaceOperations