cleanup configuration parsing