add -h and -p option