bitwise operation :)
python's enclosing scope :(
hia hia