only register endpoint if compontent active