added -p option