modified channel api sample app