corrected method call in apiwrapper