calculate path for early commands only once