message getting seperated into function just need token passed to http call