implement #1127 for qualified function refs