added some input filtering on the open contact methods