support passing browser and log  fixed #13