added callbacks for TW variables and timeing via a preprocessing command