modified util.lua, function safe_call