add check path function
Merge branch 'master' of github.com:qcl/master-research