20140716: updated script to be stateful within salt