flush only in dev mode