fixed script path problems