fix for issue 14, seg faults with gpio events