kludges to get it working