simplified script to debug issues