used config instead of xml