added helper module, function to create a path tree, included in deploy and fetch