accept binary too
change api