eliminated indirection to bin script and added test mode to cgi script