forked-ish from CM