add support of device open with key from linux - clean code