fix method references to match against parent context