scripts for forward searcg