fixed output in scripts