compatibility with JavaME