fixed state error by checking for an exsting machine before importing state data