[FIX] remove return codes
[NOP] use c++ casts and explicit sizes