moved rec and user dir creation up so the logger can place its file