implemented ecal regression; fixed a BuildFile ; porting an interface change that had been dropped when moving to git