handle incoming method calls