more work on controller node
first complete controller implementation