fixed toolchain order. added template in the patch section