switch to readfile