optimization flag; track depth info