updated apis to start further development of chat module