handle case when paths are empty