added error handling back

todo:
re-enable backups
make bulk-backups