add import, convert class to JSONRPCHandler