add support to return message params by type