replaced the order of trace and file, fixed getLine error