add simplistic plotting code