initial version of plotting lib