refactored extern expression to remove Builder dependency