rewrite to use salt pillar