move devicedetection from collection to route