set base dir