stop detection prototyping