use API

Signed-off-by: Nader Hendawi <nader@backupify.com>