static utils + bitmap hacks and shit.

:) ignore this