more methods for EmAdapter; taking care of errors.