fix CLI to work with new API modifications

Signed-off-by: aurel <aurel.savoiu@cti.pub.ro>