updated for jw.randomopener version: 1.0