first working solution with new C API (0.8.1) some issues with gridfs still available