Fix windows line endings
move filters to an external library