adding useful trick for flags