added code to embed device compilation