adding type inference for import native method