messagin tool full implementation