Sofia and Moscow agreed in principle last January to have a 50-50 share in the new pipeline , which will span Bulgarian territory from east to west before branching off toward Austria on one side , and Greece and Italy on the other .