more advanced control of flow errors