updated for new WC version