solve duplicate circuits bug, change main.cpp argument