only install nginx if necessary