fix /device_mapping in main.py