fix open_uri bug, style stuff