added data retrieval and public folder