splitting messaging in objects per function