working on docdir issue