added some typescript stuff