use a better checking for option 4 that works with p-ps and midgen