java8 support

Closes #12