add init from device