remove unused sendmessage funcs