new graph and parser logic