added safeguard for node version