better logging and handling filters