deal with the browser and next tick better