fixes #933 GSCANONICAL DEPRECATED
fixes for #899