code refactoring payoff: nav upload now works!