remove unused middleware template
remove extra user.id param