Some twisted and wokkel helper classes and functions