fixed messages create logic and added read_flag to message