save and get data from external