it seems i will be better of doing lock until some of my scripts work and accumulate changes and at the script end do a flush..and unlock.(they are short quick scripts)
If I place flush logic in the DESTROY method will it be called when the script exits.(if i forgot to do it)..
I mean if I forgot to untie.