implemented config()