Make it possible to use switchns as a library