remove flush and panics