update script - working okay on ubuntu