added multi config support