added running flag