some light refactoring
fixed typescript project