not working, basic file functionality