complteted more of msg.cc, did not test, not sure if it will work properly even if compiled