pgplot: use resource
salt: use resources