use special dir api