add file retrieving support