fixed getMessages response and sendMessage callback