works, but it is required to be packed as DLL