US stock indexes edge up as oil gives up half of its spurt