mask outer names with locals