added get message API