handle resources in .embeddedframework