Differentiate config key for client/server for middleware... this is a temporary solution