keep an array of starts and ends, and make sure NONE fail, not just one

Signed-off-by: Tomas Neme <lacrymology@gmail.com>