use node core assert module instead of external