implemented run and reun dbug