temporary fix to define $DEVICE