upgraded to match compatibility with NodeBB 0.4.x