Restructured BGURLS; bugs fixed