add jni interface between network layer and main controller