refactor split to files
return the real count from response