fix ts build, wierd errors when running
fix ts runtime