preparing refactor in order to get datas from remote server