simple config parsing script