simplify initialization / startup / embedded / task-switch api
code cleanup