added response filter and restart functions