replace dll call to marco