a little cleanup
use xhr.status