fixed bug with specifying devices