add main directory