added workaround to support old and new(er) version of twill