filter lines server-side