fixed file issue - was null pointer