add autoloading for controllers, rootPath can be with or without trailing delimiter