improved detection of discontinuous functions
test pages