bytes as a filter + some clean-ups