added checkPolicy support.