implement a simple config parser