init_msg() moved to separte file