adding plotting for extension4