manage tl phases programmatically