A simple script to see what the salt API returns
restructuring to make things cleaner