refactored configplotter