created directories and moved hooks into directories