modified to integrate into ProgressCRM