run thru device code