add time counter for debugg