file and email stuff not working