added m2t_util module and moved fail and safe_request there