some checks in virtualprotect