changed paramenters id and name to device prefix