change status on errors