using new version of plot and better way to handle function input, akin to require