refactored object calls from old source into routines, exported as externs