added stand-alone code for micro channel devices