use global variables for EDITOR, etc, and export