update embed process
transition to factories