add multicall binary capabilities
fix header writing