implement set-strictmode, add comments