file recording now works