Cas sec filter

avoide formatting old code unless really needed