reverted my last changes, fixed unaligned access to make it work