add flag for specifying insert source dir