added multiple binary support