adapted files for dual amd-cjs