make serialize-messages configurable
put config out of jar