workaround for void* conversion of funcptr