correctly set status flags
auto-remove dead memory regions