fixing main dir duplication