added check for 'mode' parameter also in dynamic configuration map