Move interpreter value in core to be used in device. Fix some bug in device loading and device generator