reworked nodejs classes