Productivity, shocks, and management practices