added support for accelerator