pass ws_url to kernel constructor