tested under wp 3.8