make it work with older python versions