extend exported gpio validation function