checkFlags task added but untested