added logout command to filter