fix filtering so that we have no shell interference