fixing local file handlers, tests finish