added -h switch