more interactive tool and auto esitmation of p,q my feature matching