tweak logic for configuring the express app