refactor: add type and network arguments