* add support for device grabbing
* fix broken macro argument