change autoloader to use new way of getting directories
some changes on the config class