fixing up web scripts