replaced DLL with main