better warning in case of missing variables