add checkpolicyfile flag in loading context