compile and load defrouter code on launch