rename mkcard to copy it over from autobuilder