adapted API to three.js r56