made plot library external