implement my own cross platform readMaybe in plotter