parser allows choice of king safety function