updated to more modern and better optimized library for faster digital io