add messages/0 function to be compatible with cowboy