some type fixes
add js stubs