fix repository location; put http handling in separate header