added choices as an optional devicetype prams, fixed error message