parse flags after initializing config