replace SetConfig with SetRouter, SetServer, SetPort and SetCreateRoute