add setPath and setExt method