horrible workaround for memmem conflict