better detection of registered gpio