added dir wrapper functions