cleaned up update script