clean up warnings. make it compile under java 1.6. refactor so that web filter is not mandatory.