pulling in some utilities and strating proper queries