flip 'path' around and add hs to 'functions'