add synchronous calls for the api - can now be used for striaght java