work on d2pak_open