added middleware dep