modify configuration and add service class