add check for null pointer returned from MemMap so client can actually run as non-root