detect embedded packages