added method to retrieve local documents