Depending on the ordering of some of the switches things do not work. We should switch to a small simple library