change to embed app recursively