changed validate to return bool, filter to return only valid flags
0.3.0