actually made add_device work