Markets struggle for direction following tech rebound; oil slips