fixed impersonate

fixed hooks so we don't open browser window when a scenario is tagged
@API