updated Slim to 2.2.0 and some changes for autodiscovery