fix deprecated call of send with status