converting individual restc call as seperate event handler, use yaml as config