revamped to work with backuputils.py