trapped error while setting 'read' flag