refactor deps.go