add hook for path extension in minrc