use st_update api to avoid extra insert/lookup
store per-line total weights
rename
print files
print method callers and callees