better handling of different configs