add check on directory name for '-id'