added DEBUG flag and target tar