changed changed trace function to dpm_run_callback