rewrite - do not use swconfig