fix ts script and add setup script
fix paths