added pretty thing for sendmessage
renamed functions to be more easily handled and recognized