replace network module with directory