fix vmg calculations and optimize tacking loading