Debug script to correctly  files