added flag ability for definitions