idea: fix bit shifting crap