cpr.set_location lacked self arg