optimized added added options for plot generation