forgot -h flag, add check for directory