add support for predefined stop sets, but the code is a mess