fix for MGR_DIR