Small change to path_shorten to prevent the core library from take a path core
Small refactor to init flow, added more messages too