corrected switch validation rules
added dynamic 2GB check to heap