getting around form caching issue, keeping some funny looking code for p...

...erformance gain as it has already been written