added scopr support and error handling, better location bar handling