moved two consts to common library script, improved setup/backup