add part of internal ticket functions.