add a simple config factory service