add required dirs, correct sync