cleanup memread_manual and simple_manual