various improvements to native.clj