added proper implementation of create_config