setPath the better way