try create directory if pathTo set