added directory synchronization