payroll download fix

still needs error handling though