insert vars in configs