use switch in elephant
refactor memory mapping files