added usage of handle_request and implementaion of respond_illegal