added --pear option