added parse input and retrieval