use bytebuffer instead of inputStream; performance imporved; update system resource file