beginning of working version for multiple services