allow base dir configuration