cleaner paths when indexing code; better handling when it isnt clealn