improve sendStatus