moving backup script and bug fixing