modify script for backup tool