restore API (binary)