updating cli import path. updating api error handling