Properly serialize json value
Add a 'where' event to find services
Find unused ports automatically