corrected some smaller bugs in some cgiŽs