fixed #12 - serialize services to JSON
work in progress