added support for GPU plot