fixed a bug in extractStretches
Start working on overlays