mimic a simple CDI architecture and add a cli start