valve handling best practices