changed native pluging following js api