trying fgets at the moment
now it works