messageHandler expects object instead of string