debugging accepting a file