try mkdir in datacollector if file creation fails
mkdir uses NativeLibrary
add and activate data logger