added conditionalPathAutoRegister