added support for backup to the cap file