added impl hacks
possible py3k fix