fixes #467 bugs and some other compound bugs; also perf. enh. for compound dragging