allow multiple changes to function references in base environments, add option to trace complex reads