one possible implementation of multi-sketch support