Edinburgh got their Celtic League title challenge back on track with a fine win over the Border Reivers at Murrayfield.
Edinburgh: (5) 30
Tries:Di Rollo, Hogg, Jorgensen, Kellock
Cons: Paterson 2
Pens: Paterson 2
Borders: (8) 25
Tries:Palepoi, Hore, Cusiter
Cons: Hore 2
Pens: Hore 2
Marcus Di Rollo crossed the line for the home side after 33 minutes but Opeta Palepoi replied immediately.
Ally Hogg and Peter Jorgensen added further tries for Edinburgh before Borders' Charlie Hore benefited from a kindly bounce off the posts.
Ally Kellock spiralled over to secure a bonus point before Chris Cusiter nipped over for a late try for the visitors.
Edinburgh had looked the hungrier outfit during the scrappy opening stages but their promising build-up work was spoiled by carelessness.
Hore edged the visitors in front with a straightforward penalty for offside after a period of sustained pressure from the home side.
The capital men claimed the first try of the contest when Scott Murray and Jorgensen combined in slick fashion to feed Di Rollo on the right wing.
Di Rollo turned on the pace to outstrip his markers and cruised to the line from 30 metres.
It took the Reivers less than three minutes to strike back. An initial penalty came to nothing, but a fluffed clearance by Phil Godman handed them a second chance to power into the danger zone with a rolling maul.
Edinburgh's pack could not contain the momentum and Samoan lock Palepoi plunged over for the touchdown. C
Chris Paterson and Hore were wide with the respective conversion attempts.
There was a further double setback for the hosts just before the interval when winger Simon Webster and prop Allan Jacobsen hobbled off to be replaced by Francisco Leonelli and Al Dickinson.
Their departure was soon forgotten as the Gunners surged ahead just three minutes after the restart.
Paterson was off the mark with a penalty, however Hore spilled the ball adjacent to his own posts.
And from the scrum, Hogg shrugged off two challenges to plough his way to the line - Paterson finding his range to add the conversion.
Hore repaired some of the damage by slotting his second penalty, but Edinburgh snatched back the momentum with another great touchdown from Jorgensen.
Again Paterson banged over the kick to give his side useful breathing space going into the final stages.
He boosted them further with a straightforward penalty, only to see the Reivers burst back into the picture with a freak score.
Gregor Townsend's deft chip seemed to be covered by the home defence, but when the ball rebounded from the post they were completely wrong-footed and Hore gleefully scooped it up to put it down and give himself a formality of a conversion.
Paterson eased the jitters at the other end with his second penalty - then Kellock made sure of the all-important bonus point.
However, Reivers refused to buckle and they salvaged a consolation point when Cusiter claimed a last-gasp try, goaled by Hore.
Edinburgh: H Southwell, C Paterson (Capt), M Di Rollo, P Jorgensen, S Webster, P Godman, M Blair, A Jacobsen, D Hall, C Smith, A Kellock, S Murray, A Hogg, S Taylor, S Cross
Replacements: A Kelly, D Hewett, A Strokosch, A MacDonald, R Lawson, M Dey, F Leonelli
Borders: S Moffat, S Danielli, B MacDougall, C Hore, N Walker, G Townsend, C Cusiter, P Thomson (Capt), R Ford, B Douglas, S MacLeod, O Palepoi, K Brown, S Sititi, S Gray.
Replacements: T McGee, S Scott, C Stewart, A Miller, B McKerchar, A Rennick, C MacRae.