rules from json
handle incomplete instantiations
migrating from stoi to atoi