using fread. basic app working