add "pivot" transform, other bug fixes, improvements