several. refactored log_upgrade.js into tagtime.js