parser functionality for PLOT