dev: remove dead code, limit token count to 32bits