paste: make MUCH faster and fix a couple bugs