fixed update devices to return 404 on unfound device