added 3 new messaging methods, getFramework
added some safety to text_to_buffer