update moved to utils
optimized the script a bit