update for html communication