- move error check to api client pull - simplify error check in generate - return nil on any pull error