more struggling with templates (dlls this time)