added directoryMode for the assembly