add map validation function and val() alias