initial add of existing code from control repo