Version 0.3: added system_message, fix double connection