endpointing.cpp