small fixes

switched to unordered map for graphical memory handler