fix flag usage