fixed all compile errors for messages