adding field prep algorithms, sanitation and validation functions