state listener implemented, removed tmp files
see previous