create_sub_devices, c api
fix wrap_contants
create_sub_devices