replacing missing functions by getMessage