Pilot valve within main valve head