use native mkdir hook
better usage of hooks