ENH: use separate functions for elec location and erp