just reuse the code from the native one