work on fixing #82
update typescript definitions