cleanup implementation of respond_to and method retrieval