debugged refactor of salting.py
now working mostly