added commands for open and apdu (wip)