debugging a read only problem