added local error collection