Add cfg for path and clear