move message functions to their own file