separated messages from the main code