support flush and complex command