- added runtime middleware initialization