fix NoClassDefFoundError bug, fixes #9