make context a const void *