add sampled log sanitiser, sampled log retriever, and associated functions
bah
add dir_construct, modify code accordingly