added directory sync before service