was losing spec when embeddign resources