added native library support