switched to popen for reading gpio