ugly hack to circumvent incompatibility errors