moved code over to gotako