this seem to still use wrong format for dir?