fixed multiple calling of initialize in class clusters. Implemented custom text attachment support