clean up meminit detection