add var/ for new data directory (for local filesystem storage without KT)
fix to do prepare() before fs actual operations (and bug of path construction)
add debug outputs for errors and fix to udpate result if exists