yeah, I found it complex to understand, but we don't expect too many people to change or deal with this code. :)