split up createmessage command further to reduce CRAP