change dir struct, modify some detail