fixed backup library script