fixed up errors within scripts