added plotting facilities