+ apply_custom_network method
+ refactoring