provided a starting point which already gives all dependencies readily done, only entry of C code is needed from here