removed common codes from msg_id and raw function
meta_arguments function consists of the common codes