fixed script to work with new reddit format