added user settable recording dir.