fix functions from global namespace
add auto creation folders
add parameter to load special fields from file metadata table