use nodebb's logic as a basis