move messaging methods back to class