basic implementation. closes browser on 2 try :)