changing configs
creating middleware module