[mod] refactor, extract binaries into a specific class