working without flags