move setting classesDir convention in seperate method