added return code checking on update script