move gen_message to a single function instead of using sebs_parse ...