add strict and tainted mode, closes #281