fixed wp code to work with ndownRR