update script and lib cleanups