refactor service code; change config file;