added back progtools, plotting stuff