implemented config parser and re-serializer