get kpath only for line mode