added opening rtf functionality