Lazy load and path

Implemented lazy loading approach, plus a function to ste the path
globally