refactor to go templates