seperate worker.go and master.go as interface