added generally useful plotting funcs