managing plots and files better