deviceService -> getDevice refactoring