implemented the response part of the retrieve part of the ASTP