working copy from the qh219's DS webspace.