prints to stdout, not to file

isolated problem, look into these solutions