added framework for stacked graph. now need to modify graph and send needed information