better declarations of jsimpl funcs