added messaging hooks/api calls