adding nodejs features (needs review)