merged the "main" functions of both Passive and Salt
changed namesin and namesout from char[][] to **char