patched to make compatible with GS systems http://pferrie.host22.com