rename isDeleted() => isUnused()
fix deploy script
more deploy script fixes