check required flags before processing