Add :EG handler to IO_SUPPORT.
Add EG support and fix bug in getstg (was calling scan way too often).