can now handle delivered_msgs if available
(de)activating autocleanup at runtime