ming support and autoflush middleware