Fix/connect dfile and wrapper to init

connect it all up