debug script for ff