messages are now deleted
added synchronous mode
improved test sink