use native api instead of rest