handle an empty to directory