basic c# communication with core