set paths conditionally
clean up paths