added memory mapped mode
cosmetic change