moved service config to config file and added __invoke