checking and processing of retrieval protocol almost done. need to write test cases and need to prepare response