work around gcm limitations for issue #19