open file correctly...doh!