updated to new ApplicationBuilder syntax