cleaning up main. moving graph generation to clouds/plugin.cpp