added DEBUG flag