fork of ejb1123's autorip script