updated to use package instead of pear