add lib/index
add debug, create mock dir and file name