make it work with java 5!