adding builder middleware