extracting line from agent