added: implemented threshold filter, fixed bug in args if not parsed in correct order