native implementation is maximally portable